package com.lzy.system.organization.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lzy.validator.StringMinMaxConstraint;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 部门
 * </p>
 *
 * @author lcc
 * @since 2023-11-22
 */
@Data
@TableName("sys_department")
@ApiModel(value = "SysDepartment对象", description = "部门")
public class SysDepartmentDTO {
    private Long id;

    @StringMinMaxConstraint(max = 50,min = 1,message = "部门名称必须是1至50个字符")
    @ApiModelProperty("部门名称")
    private String dep_name;

    @ApiModelProperty("父id")
    private Long pid;

    @ApiModelProperty("部门编号")
    @StringMinMaxConstraint(max = 50,min = 1,message = "部门编号必须是1至50个字符")
    private String dep_no;

    @ApiModelProperty("部门全路径")
    private String dep_name_path_full;

    @ApiModelProperty("部门id全路径")
    private String dep_id_path_full;
    @ApiModelProperty("公司id")
    private Long company_id;
}
